import {reqRealEndAsync} from "./axiosCommon";
import {config} from "./frontConfig";

// 获取验证码
export const queryCaptcha = (callback) => {
  return reqRealEndAsync('get', config.real_domain, '/login/captcha', {}, callback)
}

// 登录
export const login = (params, callback) => {
  return reqRealEndAsync('post', config.real_domain, '/login/userLogin', params, callback)
}

export const logOut = (callback) => {
  return reqRealEndAsync('post', config.real_domain, '/login/logOut', {}, callback)
}
